<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

return [
    'APP_VERSION' => 'v1.0',
    'APP_NAME'    => '添豆后台管理系统',

    //鉴权相关
    'USER_ADMINISTRATOR' => [1,2,36],

    //安全秘钥
    'AUTH_KEY'           => 'fa90as!@#opdf0as8derwqe0*f8a0s9d8f0asdfjasdfaqw',

    //代理商秘钥
    'AGENT_KEY'        => 'DASFJKNKMN21T0FJ9r0U(*&*DJFOdadsdfasdf',


    //aes秘钥
    'AES_KEY'           => 'lsdjfklas123313！@#@',

    //后台登录状态维持时间[目前只有登录和解锁会重置登录时间]
    'ONLINE_TIME'  => 28800,

    //商家后台登录状态维持时间[目前只有登录和解锁会重置登录时间]
    'MASTER_ONLINE_TIME'  => 129600,

    'AGENT_ONLINE_TIME'  => 43200,
    //AccessToken失效时间
    'ACCESS_TOKEN_TIME_OUT'  => 7200,
    'COMPANY_NAME' => 'ApiAdmin开发维护团队',

    //跨域配置
    'CROSS_DOMAIN' => [
        'Access-Control-Allow-Origin'      => '*',
        'Access-Control-Allow-Methods'     => 'POST,PUT,GET,DELETE',
        'Access-Control-Allow-Headers'     => 'ApiAuth, User-Agent, Keep-Alive, Origin, No-Cache, X-Requested-With, If-Modified-Since, Pragma, Last-Modified, Cache-Control, Expires, Content-Type, X-E4M-With, Access-Token',
        'Access-Control-Allow-Credentials' => 'true'
    ],

    //跨域配置
    'WECHAT_CROSS_DOMAIN' => [
        'Access-Control-Allow-Origin'      => '*',
        'Access-Control-Allow-Methods'     => 'POST,PUT,GET,DELETE',
        'Access-Control-Allow-Headers'     => 'Authorization, User-Agent, Keep-Alive, Origin, No-Cache, X-Requested-With, If-Modified-Since, Pragma, Last-Modified, Cache-Control, Expires, Content-Type, X-E4M-With, Access-Token',
        'Access-Control-Allow-Credentials' => 'true'
    ],

    'UPLOAD_EXT' => ['jpg','png','gif','mp4','jpeg','wav','avi'],

    //后台列表默认一页显示数量
    'ADMIN_LIST_DEFAULT' => 20,
    'AGENT_URL' => "https://app.lktehui.com/index/Index/webRegister?agentID=",//推广码链接
    'MASTER_RATE4' => '20',//国代
    'MASTER_RATE3' => '20',//省代
    'MASTER_RATE2' => '18',//市代
    'MASTER_RATE1' => '16',//县代
    'MASTER_RATE0' => '0',//个代
    'USER_RATE4' => '20',//国代
    'USER_RATE3' => '18',//省代
    'USER_RATE2' => '16',//市代
    'USER_RATE1' => '14',//县代
    'USER_RATE0' => '12',//个代

    'AGENT_RATE0' => '30',//个代一级分润
    'AGENT_RATE1' => '10',//个代二级分润
    'ISLOCATION' => true,//发展用户是否本地用户开启
    'SETVIP1' => '0',  //用户注册返佣金额
    'SETVIP2' => '3',  //用户消费返佣金额
    'SETVIP3' => '7',  //用户充值返佣金额
    'RechargeMoney' => '5',  //用户充值固定金额以上可以返佣

    //代理登录密码错误次数
    'AGENT_LOGIN_COUNT' => 5,

    //代理登录密码错误次数过多，解锁时间(秒)
    'AGENT_LOGIN_TIME' => 7200,

//    配送设置条数
    'CARRIAGE_NUM' => 3,


    'CARRIAGE_TIME' => 864000,

    //   默认头像
    'PRODUCTIMG' => 'http://pic41.nipic.com/20140508/18609517_112216473140_2.jpg',

    //  运费 =》 价格
    'STIRAGE_FREIGHT' => [
        '100'     => '0',
        '50'     => '99',
        '10'     => '299',
        '0'     => '500',
    ],

    'RANK' => [
        '0'     => '5',
        '1'     => '10',
    ],

    //  金额 => 减免金额
    'MONEY_OFF' => [
        '9999'     => '3',
        '99999'     => '10',
    ],

    'FIRST_ORDER' => 0,

    'master_agent' => [
        '0'     => [
            'masterID' => 727,
            'masterName' => '添豆商超（圣淘沙店）',
            'agentID'  => 75,
        ],
        '1'     => [
            'masterID' => 826,
            'masterName' => '添豆商超（万龙湾店）',
            'agentID'  => 77,
        ],
        '2'     => [
            'masterID' => 830,
            'masterName' => '添豆商超（友谊新村店）',
            'agentID'  => 78,
        ],
        '3'     => [
            'masterID' => 954,
            'masterName' => '添豆商超（紫金名门店）',
            'agentID'  => 84,
        ],
        '4'     => [
            'masterID' => 829,
            'masterName' => '添豆商超（上栗店）',
            'agentID'  => 45,
        ],
        '5'     => [
            'masterID' => 832,
            'masterName' => '添豆商超（湘东店）',
            'agentID'  => 62,
        ],
        '6'     => [
            'masterID' => 871,
            'masterName' => '添豆商超（誉城细猫店）',
            'agentID'  => 80,
        ],
        '7'     => [
            'masterID' => 952,
            'masterName' => '添豆商超（迎新小区店）',
            'agentID'  => 83,
        ],
        '8'     => [
            'masterID' => 937,
            'masterName' => '添豆商超（光丰小学店）',
            'agentID'  => 81,
        ],
        '9'     => [
            'masterID' => 865,
            'masterName' => '添豆商超（昌红店）',
            'agentID'  => 82,
        ],
        '10'     => [
            'masterID' => 912,
            'masterName' => '添豆商超（大陂店）',
            'agentID'  => 85,
        ],
        '11'     => [
            'masterID' => 879,
            'masterName' => '添豆商超（左右城佳选店）',
            'agentID'  => 86,
        ],
        '12'     => [
            'masterID' => 956,
            'masterName' => '添豆商超（玉泉小朱店）',
            'agentID'  => 87,
        ],
        '13'     => [
            'masterID' => 931,
            'masterName' => '添豆小店（汉和鑫喜店）',
            'agentID'  => 88,
        ],
        '14'     => [
            'masterID' => 869,
            'masterName' => '添豆小店（景泰园店）',
            'agentID'  => 89,
        ],
        '15'     => [
            'masterID' => 876,
            'masterName' => '添豆商超（万新中心店）',
            'agentID'  => 90,
        ],
        '16'     => [
            'masterID' => 870,
            'masterName' => '添豆商超（文敏便民店）',
            'agentID'  => 91,
        ],
        '17'     => [
            'masterID' => 1611,
            'masterName' => '添豆商超（美佳华店）',
            'agentID'  => 95,
        ],
    ],

    'company_photo' => 'https://laike-1257904924.cos.ap-shanghai.myqcloud.com/1%E5%A4%B4%E5%83%8F/logo%203.jpg',

    'show_time'=>[
        '0' => '23:00',
        '1' => '2:00',
    ],

    //  运费 =》 价格
    'COMPANY_STIRAGE_FREIGHT' => [
        '0'     => '1',
        '1'     => '0',
    ],

    'FEIE_ARR' => [
        1 =>[
            'name' => '打印机1',
            'feieCode' => '920551385',
        ],
        2 =>[
            'name' => '打印机2',
            'feieCode' => '921508885',
        ],
    ],
];
